<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="__CSS__/ex/common.css">
    <link rel="stylesheet" href="__CSS__/ex/login.css">
    <title>个人资料</title>
    <script src="__JS__/ios-web-app.js"></script>
</head>
<style>
    .input_right{
        display: inline-block;
        text-align: right;
        font-size: .28rem;
    }
    .detail_footer p{
            border: none !important;
        }
        .detail_footer p{
            display: flex;
              align-items: flex-start;
            justify-content:flex-start;
        }
        .detail_footer img{
            width: .2rem;
            margin: 0 .1rem;
            padding: .1rem 0; 
        }
</style>
<body style="padding-top: 38px">
    <header class="normal_header">
        <div class="header_pic">
            <a href="javascript:history.back(-1)"><img src="__IMG__/ex/back_black.png" alt=""></a>
        </div>
        <p>个人中心</p>
        <div class="header_pic"></div>
    </header>
    <section class="change_content">
        <ul class="change_ul">
<!--            <li class="touxiang">-->
<!--                <p>头像</p>-->
<!--                <div class="flexFirst">-->
<!--                    <div class="user_pic">-->
<!--                        <if condition="$data.headimgurl eq ''">-->
<!--                            <img src="__IMG__/ex/exlogo1.png" alt=""/>-->
<!--                            <else />-->
<!--                            <img src="{$data.headimgurl}" alt="">-->
<!--                        </if>-->
<!--                    </div>-->
<!--                    <img src="__IMG__/ex/right.png" alt="">-->
<!--                </div>-->
<!--            </li>-->
            <li>
                <p>昵称</p>
                <!--<span>{$data.username}</span>-->
                <span><input type="text" class="txtright" id="username" value="{$data.username}" /></span>
                <!--<input type="text" class="txtright" id="truename" value="{$data.username}" />-->
                <!--<img src="__IMG__/ex/right.png" alt="">-->
            </li>
            <!--<li>-->
                <!--<p>手机号ID</p>-->
                <!--&lt;!&ndash;<span>{$data.phone}</span>&ndash;&gt;-->
                <!--<span><input type="text" class="txtright" id="phone" value="{$data.phone}" /></span>-->
                <!--&lt;!&ndash;<input type="text" class="txtright" id="phone" value="{$data.phone}" />&ndash;&gt;-->
                <!--&lt;!&ndash;<img src="__IMG__/ex/right.png" alt="">&ndash;&gt;-->
            <!--</li>-->
            <li>
                <p>UID</p>
                <span><input type="text" class="txtright" id="uid" value="{$data.uid}" /></span>
            </li>
            <li>
                <p>邮箱地址</p>
                <span><input value="{$data.email}" id="email"  class="input_right"/></span>
            </li>
            <li>
                <p>注册时间</p>
                <span>{$data['create_time']|date="Y-m-d H:i:s",###}</span>
                <!--<p class="register_time">{$data['create_time']|date="Y-m-d",###}</p>-->
            </li>
<!--            <a href="{:U('user/address_info')}">-->
<!--                <li>-->
<!--                    <p>地址信息</p>-->
<!--                    <img src="__IMG__/ex/right.png" alt="">-->
<!--                </li>-->
<!--            </a>-->
            <!--<li>-->
            <!--    <p>VIP认证</p>-->
            <!--    <a href="{:U('user/certification')}"><span style="color: red;">去认证</span></a>-->
                <!--<p class="register_time">{$data['create_time']|date="Y-m-d",###}</p>-->
            <!--</li>-->
        </ul>
        
        <ul class="change_ul" >
            <div id="" style="display:flex;align-items:center;justify-content:space-between;padding:.3rem .1rem; border-bottom: 1px solid #f1f1f1;">
                
                
                <?php if($info['vipmoney'] < $viprz){ ?>
                <p>VIP认证</p>
                <a href="{:U('user/certification')}"  style="display:flex;align-items:center;">
                    <img id="" src="__IMG__/ex/renzheng.png" style="width:.3rem;" alt="" />
                    <span style="color: red;">去认证</span>
                    </a>
                <?php }else{ ?>
                <p style="font-weight:bold;">VIP认证</p>
                <a href="{:U('user/certification_success')}"  style="display:flex;align-items:center;">
                    <!--<img id="" src="__IMG__/ex/renzheng.png" style="width:.3rem;" alt="" />-->
                    <span style="color: green;font-weight:bold;">已认证</span>
                    </a>
                <?php } ?>
            </div>

              <div class="detail_footer" style="padding:.2rem 0 .4rem">
                        <p style="padding-top:0.2rem;">
                            <img src="__IMG__/ex/circleh.png" style="circleh.png" alt="" />
                            <span style="color:#9A9A9A">VIP认证即可提升信用额度与等级权益</span>  
                        </p>
                        <p style="padding-top:0.2rem">
                            <img src="__IMG__/ex/circleh.png" style="circleh.png" alt="" />
                            <span style="color:#9A9A9A">VIP认证后,可进行单笔高于300 USDT或累积金额大于2000 USDT的法币交易</span>   
                        </p>
                </div>

        </ul>
        <div class="btn login_btn lsub" id='sub' style="margin-top:1rem">
            提交
        </div>
        <!--<div class="logout">-->
            <!--退出登录-->
        <!--</div>-->
    </section>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
    <script>
        $('#sub').click(function () {
            $.ajax({
                type: "post",
                url: "{:U('User/user_info')}",
                data: {
                    email: $('#email').val(),
                    phone: $('#phone').val(),
                    username: $('#username').val(),

                },
                dataType: "json",
                success: function (data) {
                    if (data.code == 1) {
                        alert(data.msg);
                    } else {
                        alert(data.msg);
                        window.location.href = data.data;
                    }
                }
            });
        });
        $('.logout').click(function () {
            window.location.href = "{:U('Public/getOut')}"
        })
    </script>
</body>

</html>